package com.dream.technology.engin.expression;

import java.util.*;

/**
 * 描述：
 *
 * @author chen_q_i@163.com
 * 2019/1/3 : 15:35.
 * @version : 1.0
 */
public class TT {



    public static void main(String[] args) {
//        System.out.println(11);
//
//
        List<Integer> arr = new ArrayList<>(Arrays.asList(3,4,1,2,3,4,2));
        Map<Integer ,List<Integer>> ruleItemsMap = new HashMap<>();
        arr.forEach(ruleItem -> {
            List<Integer> integers = ruleItemsMap.get(ruleItem);
            if (integers==null){
                integers = new ArrayList<>();
            }
            integers.add(ruleItem);
            ruleItemsMap.put(ruleItem,integers);
        });
//
        handlerMap(ruleItemsMap);
        ruleItemsMap.forEach((k,v)-> System.out.println(k+"--"+v));
//


    }


    public static void handlerMap(Map<Integer ,List<Integer>> intergerMap){
        intergerMap.put(1111, Arrays.asList(111, 111));
        intergerMap.put(222, Arrays.asList(222, 222));
    }
}
